﻿using Abp.AutoMapper;
using System.ComponentModel.DataAnnotations;

namespace FutureApp.Users.Dto
{
    /// <summary>
    /// 创建输入参数DTO
    /// </summary>
    [AutoMapTo(typeof(User))]
    public class CreateShopUserInput
    {
        /// <summary>
        ///联系人
        /// </summary>
        [Required(ErrorMessage = "联系人不能为空")]
        public string Name { get; set; }
        /// <summary>
        ///手机号
        /// </summary>
        [Required(ErrorMessage = "联系电话不能为空")]
        [StringLength(11)]
        public  string Telephone { get; set; }
        /// <summary>
        ///商家名称
        /// </summary>
        [Required(ErrorMessage = "商家名称不能为空")]
        [StringLength(30)]      
        public  string ShopName { get; set; }
        /// <summary>
        ///商家账号
        /// </summary>
        [Required(ErrorMessage = "商家账号不能为空")]
        [StringLength(30)]
        public  string ShopId { get; set; }
        /// <summary>
        ///账号密码
        /// </summary>
        [Required(ErrorMessage = "商家密码不能为空")]
        [StringLength(50)]
        public  string ShopPassword { get; set; }
        /// <summary>
        ///经营品类
        /// </summary>
        [Required(ErrorMessage = "经营品类不能为空")]
        [StringLength(30)]
        public  string ShopItem { get; set; }
        /// <summary>
        ///商家账户
        /// </summary>
        [Required(ErrorMessage = "商家账户不能为空")]
        [StringLength(60)]
        public  string ShopCard { get; set; }
        /// <summary>
        ///地址
        /// </summary>
        [Required(ErrorMessage = "地址不能为空")]
        [StringLength(60)]
        public  string Address { get; set; }
        /// <summary>
        ///用户类型：1商家，2个人用户
        /// </summary>

        public const int UserType = 1;
    }
}